Skip to content

Conversation

@dlech
Copy link
Member

@dlech dlech commented Aug 9, 2025

Extend the USB transmit timeout from 5 ms to 50 ms. We are getting spurious unsubscribes due to the timeout while still being connected, so 5 ms is not long enough. Let's increase by 1 order of magnitude and see how it goes.

Extend the USB transmit timeout from 5 ms to 50 ms. We are getting
spurious unsubscribes due to the timeout while still being connected,
so 5 ms is not long enough. Let's increase by 1 order of magnitude
and see how it goes.
@coveralls
Copy link

Coverage Status

coverage: 56.984% (-0.01%) from 56.998%
when pulling e912a69 on dlech:usb-timeout
into ee90e96 on pybricks:master.

@dlech dlech merged commit 3b3c775 into pybricks:master Aug 9, 2025
17 checks passed
@dlech dlech deleted the usb-timeout branch August 9, 2025 02:22
}
} else if (!was_transmitting && is_transmitting) {
pbio_os_timer_set(&tx_timeout_timer, 5);
pbio_os_timer_set(&tx_timeout_timer, 50);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... EV3 seems to need an even longer timeout. I wonder if this means there is something else blocking this from updating or if the app really is taking that long to service the IN endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants